home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / shwdlg16.hqx / ShowDialog XCMD 1.6 / card_6430.txt < prev    next >
Text File  |  1989-05-10  |  2KB  |  55 lines

  1. -- card: 6430 from stack: in.6
  2. -- bmap block id: 6849
  3. -- flags: 0000
  4. -- background id: 3411
  5. -- name: Alert Types
  6. ----- HyperTalk script -----
  7. on closeCard
  8. end closeCard
  9.  
  10.  
  11. -- part 1 (button)
  12. -- low flags: 00
  13. -- high flags: 0001
  14. -- rect: left=16 top=85 right=294 bottom=198
  15. -- title width / last selected line: 0
  16. -- icon id / first selected line: 0 / 0
  17. -- text alignment: 1
  18. -- font id: 0
  19. -- text size: 12
  20. -- style flags: 0
  21. -- line height: 16
  22. -- part name: 
  23.  
  24.  
  25. -- part 3 (field)
  26. -- low flags: 01
  27. -- high flags: 0000
  28. -- rect: left=78 top=71 right=285 bottom=498
  29. -- title width / last selected line: 0
  30. -- icon id / first selected line: 0 / 0
  31. -- text alignment: 0
  32. -- font id: 3
  33. -- text size: 10
  34. -- style flags: 0
  35. -- line height: 13
  36. -- part name: 
  37.  
  38.  
  39. -- part contents for background part 21
  40. ----- text -----
  41. Alert Boxes
  42.  
  43. -- part contents for background part 30
  44. ----- text -----
  45. 9
  46.  
  47. -- part contents for card part 3
  48. ----- text -----
  49. The purpose of an alert is to notify the user whenever an unusual situation occurs.
  50.  
  51. An alert box looks like a modal dialog box, except that it's somewhat narrower and appears lower on the screen.  An alert box is primarily a one way communication from the system to the user; the only way the user can respond is by clicking buttons.  Therefore alert boxes might contain dials and buttons, but usually no editable text fields, radio buttons, or check boxes.
  52.  
  53. How the buttons in an alert box are labeled depends on the nature of the box.  If the box presents the user with a situation in which no alternative actions are available, the box has a single button that's labeled OK.  Clicking this button means "I've read the alert."  If the user is given alternatives, then typically the alert is phrased as a question that can be answered "yes" or "no."
  54.  
  55. The preferred (safest) button to use in the current situation is boldly outlined.  This is the alert's default button; its effect occurs if the user presses Return or Enter.